Part Number Hot Search : 
003GX0 MBRF880 KE180 4ALVCH 13007 LT3080 K2500E70 LC737212
Product Description
Full Text Search
 

To Download AN1605 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  AN1605/0403 1/7 AN1605 application note using an active rc to wakeup the st7lite0 from power saving mode by microcontroller division applications 1 introduction this application note investigates the power consumption during the operation of a typical ap- plication which puts the mcu (st7lite0) in halt mode and wakes it up at regular intervals by an external interrupt generated by an active rc circuit. it also lists the typical consumption values and the parameters on which this consumption de- pends. the internal pull up (rpu) of an i/o port is used for the active rc to minimise the number of external components. the value of the rpu varies with the supply voltage of the mcu and with temperature. externally, only one capacitor is used. the st7lite0 clock source is configured by option byte to be internal rc with pll*8. all measurements are taken at ambient temperature. 1.1 hardware solution figure 1 shows the hardware setup used to measure the consumption (i dd ) at different power supply voltages. figure 1. hardware setup 1.2 power consumption the power consumption depends mainly on the time period between each wakeup from halt (external interrupt interval). the wakeup time period is controlled by the rc time constant. the value of the c ext is fixed but the internal pull-up value varies with the mcu power supply voltage and with temperature. c ext e i 0 r pu v dd pa 0 1
2/7 the typical values of the rpu at different power supply voltages is given in table 1 . table 1. rpu values for different power supply conditions the consumption is measured for two different values of c ext , given in table 2 and table 3 . table 2. consumption for c ext = 1 f setup no. conditions rpu (minimum) rpu (typical) rpu (maximum) 1v dd = 5.0 v 50 k w 120 k w 250 k w 2v dd = 3.0 v - 160 k w - setup no. v dd (volts) average i dd (ma) consumption in run mode average i dd (a) consumption in power saving mode ext interrupt interval (ms) i dd (a) consumption when mcu is in halt 1 2.4 1.44 15.6 154.0 0.1 2 2.6 1.73 20.6 131.2 3 2.8 2.0 26.6 114.0 4 3.0 2.28 35.2 101.2 5 3.2 2.59 41.8 90.8 6 3.4 2.95 48.6 80.8 7 3.6 3.34 56.6 72.4 8 3.8 3.55 66.2 67.2 9 4.0 3.73 75.3 62.6 10 4.2 3.93 83.4 59.2 11 4.4 4.12 95.4 55.2 12 4.6 4.31 105.2 53.0 13 4.8 4.54 117.4 50.6 14 5.0 4.75 129.4 48.0 2
3/7 table 3. consumption for c ext = 0.47 f the parameters on which the consumption depends are as follows: n the mcu inserts a delay of 256 cpu cycles to stabilize the internal rc, during this time it consumes some current. for example at 3.6v, the details of the duration of different modes are as follows: C mcu in halt mode: 72.00 ms C mcu in run mode (delay period + capacitor discharge time) : 211.2 s setup no. v dd (volts) average i dd (ma) consumption in run mode average i dd (a) consumption in power saving mode ext interrupt interval (ms) i dd (a) consumption when mcu is in halt 1 2.4 1.45 19.6 69.8 0.1 2 2.6 1.74 25.1 60.0 3 2.8 2.01 32.1 52.2 4 3.0 2.29 39.0 46.6 5 3.2 2.60 46.2 42.1 6 3.4 2.95 54.2 38.0 7 3.6 3.34 62.5 35.2 8 3.8 3.54 71.7 32.8 9 4.0 3.75 81.2 30.8 10 4.2 3.91 91.8 29.2 11 4.4 4.12 101.9 27.7 12 4.6 4.31 112.6 26.5 13 4.8 4.51 124.0 25.4 14 5.0 4.73 135.4 24.3
4/7 figure 2. overview of the consumption parameters the exact calculation of the delay period is given as follows: when the pllx4x8 is selected, it delivers the clock after 60 cycles of the clock source (for a 1 mhz clock source, the delay due to the pll is 60s). the total delay at oscillator start up with pllx4x8 is given by the formula: ttempo = [(60*tclock_source) + (256*tcpu_clock)] where, tclock_source represents the time period for one clock cycle of the clock source, and tcpu_clock represents the time for one cpu clock cycle. n to discharge the capacitor, a software delay of 294 cycles has to be inserted before putting the mcu in halt again, so that the capacitor is fully discharged before recharging it. this is the optimum delay at which minimum consumption is achieved. n for minimum consumption in halt mode: all the port pins should be configured as push pull output at low level (normally the consumption in this configuration is approx. 0.1 ~ 0.2 ua), but the pin to which the external interrupt is connected (pa0), has to be configured as pull up interrupt. hence, while the mcu is in halt mode with this configuration, it consumes more than 0.2 a. n the mcu cannot be kept in halt for longer than the time it takes the capacitor to charge up to vdd level. this is because as soon as the capacitor charges to approximately 0.7vdd, the mcu detects it as external interrupt (the interrupt sensitivity is configured for rising edge) and comes out of halt mode. t i dd ma run mode run mode halt mode t tempo 211s halt mode 3.5 0.0002 72ms
5/7 n the charging time is mainly controlled through the capacitor value. but if the capacitor value is increased beyond 1uf, although the interval between external interrupts (in ms) is increased, the capacitor itself consumes more current while charging. hence, the average consumption is high in this case. a summary of the consumption and the external interrupt interval for c ext = 2.2uf and 4.7uf is shown in table 4 . it can be seen from this table that even though the external interrupt interval is longer than in tables 2 & 3, the consumption is higher. table 4. power consumption and ext. interrupt interval for c ext = 2.2 f and c ext = 4.7 f if a different hardware setup is used, where an external series r (to generate the external in- terrupt through an external rc combination) is connected, the capacitor charging time de- creases drastically. for example, when a series r of 490k is added, the charging time de- creases to 6.7s. hence, the period the mcu stays in halt mode is very small, causing more consumption. as a conclusion, the best result (minimum consumption) is achieved with a 1f capacitor value and using an internal pullup. this is illustrated in figure 3 . figure 3 shows the average i dd consumption in halt mode and run mode respectively with the two different capacitor values (cext = 1.0 uf and 0.47uf) used for the active rc. setup no. v dd (volts) c= 2.2f c= 4.7f average i dd (a) consumption in power saving mode ext interrupt interval (ms) average i dd (a) consumption in power saving mode ext interrupt interval. (ms) 1 3.0 35.6 171.6 48.9 200.0 2 4.0 86.4 107.6 114.5 124.2 3 5.0 146.6 83.6 189.6 97.2
6/7 figure 3. average i dd consumption run and halt mode 1.3 software solution the software is written in assembly. first the pa0 port (through which the external interrupt is taken to the mcu) is configured as pull-up interrupt. the sensitivity of the interrupt is configured as rising edge. then the capacitor is charged through software and immediately the mcu is put into halt. as soon as the capacitor charges to nearly 0.7vdd, the mcu detects it as an external interrupt and comes out of halt mode. the capacitor is discharged through software. and a small software delay of 294 cycles is then provided to let the capacitor discharge fully before it recharges and wakes up the mcu from halt mode with another external interrupt. the mcu is again put into halt and the same process is repeated. all the source files in assembly code is given in the zip file with this application note. the source files are for guidance only. stmicroelectronics shall not be held liable for any di- rect, indirect or consequential damages with respect to any claims arising from use of this soft- ware. 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 2.4 3 3.6 4.2 4.8 5 vdd (volts) average consumption idd (m a run mode (cext=1.0uf) run mode (cext=0.47uf) 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 2.4 3 3.6 4.2 4.8 5 vdd (volts) average consumption idd (ua) halt mode (cext=1.0uf) halt mode (cext=0.47 uf)
7/7 the present note which is for guidance only aims at providing customers with information regarding their products in order for them to save time. as a result, stmicroelectronics shall not be held liable for any direct, indirect or consequential damages with respect to any claims arising from the content of such a note and/or the use made by customers of the information contained herein in connection with their products. information furnished is believed to be accurate and reliable. however, stmicroelectronics assumes no responsibility for the co nsequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of stmicroelectronics. specifications mentioned in this publicati on are subject to change without notice. this publication supersedes and replaces all information previously supplied. stmicroelectronics prod ucts are not authorized for use as critical components in life support devices or systems without the express written approval of stmicroele ctronics. the st logo is a registered trademark of stmicroelectronics ? 2003 stmicroelectronics - all rights reserved. purchase of i 2 c components by stmicroelectronics conveys a license under the philips i 2 c patent. rights to use these components in an i 2 c system is granted provided that the system conforms to the i 2 c standard specification as defined by philips. stmicroelectronics group of companies australia - brazil - canada - china - finland - france - germany - hong kong - india - israel - italy - japan malaysia - malta - morocco - singapore - spain - sweden - switzerland - united kingdom - u.s.a. http://www.st.com


▲Up To Search▲   

 
Price & Availability of AN1605

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X